Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODFrame


ChangePart

The ChangePart method assigns a new part to this frame.

void ChangePart (in ODPart part);
part
A reference to a part to associate with this frame.
DISCUSSION
Your part calls this method when it wants to keep one embedded frame and swap parts in and out of it, as is typical for browser-type parts. This method in turn calls the FacetRemoved method associated with this frame's part to remove all facets of this frame from its previous part. This method can also call the FacetAdded method associated with this frame's new part to add all facets associated with the previous part.

Unless this frame was removed or closed, you can always assume that this frame previously had a part.

EXCEPTIONS
kODErrIllegalNullPartInput
The part parameter is null.
SEE ALSO
The ODPart::FacetAdded method (page 514).
The ODPart::FacetRemoved method (page 515).
"Sharing Palettes and Utility Windows" on page 238 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help